|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
a tmel sam4sp32a cortex- m4 prime soc prelim in ary datasheet features ? core ? arm ? cortex ?- m4 with a 2kbytes cache running at 120mhz ? memory protection unit (mpu) ? dsp instruction set ? thumb ?- 2 instruction set ? memories ? 2048 kbytes embedded flash with optional dual bank and cache memory ? 160 kbytes embedded sram ? 16 kbytes rom with embedded boot loader routines (uart, usb) and iap routines ? system ? embedded voltage regulator f or single supply operation ? power - on- reset (por), brown - out detector (bod) and watchdog for safe operation ? quartz or ceramic resonator oscillators: 3 to 20 mhz main power with failure detection and optional low - power 32.768 khz for rtc or device clock ? rtc with gregorian and persian calendar mode, waveform generation in low power modes ? rtc clock calibration circuitry for 32.768 khz crystal frequency compensation ? high precision 8/12 mhz factory trimmed internal rc oscillator with 4 mhz default frequency for device startup. in - application trimming access for frequency adjustment ? slow clock internal rc oscillator as permanent low - power mode device clock ? two plls up to 240 mhz for device clock and for usb ? temperature sensor ? up to 22 peripheral dma (pdc) channels ? low power modes ? sleep and backup modes, down to 1 a in backup mode ? ultra low - power rtc ? peripherals ? usb 2.0 device: 12 mbps, 2668 byte fifo, up to 8 bidirectional endpoints. on - chip transceiver ? 2 usarts with iso7816, irda ?, rs - 485, manchester and modem mode ? two 2 - wire uarts ? 2 two wire interface (i2c compatible), 1 synchronous serial controller (ssc) ? 2 three - channel 16 - bit timer/counter with capture, waveform, compare and pwm mode. quadrature decoder logic and 2 - bit gray up/down counter for stepper motor ? 4 - channel 16 - bit pwm with complementary output, fault input, 12 - bit dead time generator counter 43020a - atpl - 09/12 www.datasheet.net/ datasheet pdf - http://www..co.kr/
a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 2 ? 32- bit real - time timer and rtc with calendar and alarm features ? one analog comparator with flexible input selection ? 32- bit cyclic redundancy check calculation u nit (crccu) ? write protected registers ? i/o ? up to 38 i/o lines with external interrupt capability (edge or level sensitivity), debouncing, glitch filtering and on - die series resistor termination ? three 32 - bit parallel input/output controllers, peripheral dma assisted parallel capture mode ? prime plc modem ? power line carrier modem for 50 and 60 hz mains ? 97- carrier ofdm prime compliant ? baud rate selectable: 21400 to 128600 bps ? differential bpsk, qpsk, 8 - psk modulations ? automatic gain control and signal amplitude tracking ? embedded on - chip dmas ? media access control ? viterbi decoding and crc prime compliant ? 128- bit aes encryption ? channel sensing and collision pre - detection ? package ? 128- lead lqfp ? pb - free and rohs compliant ? typical applications ? prime smart meters ? prime d ata concentrator www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 3 description the sam4sp32a is a new evolution of sam4sd32 flash microcontroller based on the high performance 32 - bit arm cortex - m4 risc processor with a prime power line communication modem soc integrated. the sam4sp32a operates at a maximum speed of 120 mhz and features with a 2048 kbytes of flash, with optional dual bank implementation a nd 2kbytes of cache memory, 160 kbytes of sram, and 32kbytes embedded sram memory available for prime specification requirements. the peripheral set mainly includes a certified prime power line communication transceiver with a featured class d power amplifier and a set of hardware accelerators blocks to execute the heavy tasks of the prime protocol without the interruption of the cortex - m4 cpu. furthermore, the sam4sp32a includes a full speed usb device port with embedded transceiver, , 2x usarts, 2x uarts, 2x twis, an i2s, as well as 1 pwm timer, 2x three channel general - purpose 16 - bit timers (with stepper motor and quadrature decoder l ogic support), an rtc, a synchronous serial controller (ssc) and an analog comparator. the atmel sam4sp32a soc device combines robust and high performances prime plc modem with a powerfull cortex - m4 microcontroller with the best ratio in terms of reduced power consumption, processing power and peripheral set. this enables the sam4sp32a to sustain a wide range of applications including prime smart g ri d an d data concentrator solutions . sam4sp32a operates from 3.0v to 3.6 v www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 4 table of contents 1. block diagram ................................ ................................ .................... 8 2. package and pinout ................................ ........................................... 9 2.1 128- lead lqfp package outline ................................ ................................ .. 9 2.2 128 - lead lqfp pinout ................................ ................................ ............... 10 3. signal description ................................ ................................ ............ 11 4. pin description ................................ ................................ ................. 15 5. power consi derations ................................ ...................................... 26 5.1 power supplies ................................ ................................ .......................... 26 5.2 voltage regulator ................................ ................................ ....................... 26 5.3 typical powering schematics ................................ ................................ ...... 26 5.4 active mode ................................ ................................ ............................... 29 5.5 low - power modes ................................ ................................ ...................... 29 5.5.1 backup mode ................................ ................................ ................ 29 5.5.2 wait mode ................................ ................................ .................... 29 5.5.3 sleep mode ................................ ................................ .................. 30 5.5.4 low power mode summary table ................................ ................. 30 5.6 wake - up sources ................................ ................................ ....................... 32 5.7 fast startup ................................ ................................ ................................ 33 6. input/output lines ................................ ................................ ............ 34 6.1 general purpose i/o lines ................................ ................................ .......... 34 6.2 syst em i/o lines ................................ ................................ ........................ 34 6.2.2 serial wire jtag debug port (swj - dp) pins ................................ 35 6.3 test pin ................................ ................................ ................................ ...... 35 6.4 nrst pin ................................ ................................ ................................ ... 36 6.5 erase pin ................................ ................................ ................................ . 36 7. processor and architecture .............................................................. 37 7.1 arm cortex - m4 processor ................................ ................................ ......... 37 7.2 apb/ahb bridge ................................ ................................ ......................... 37 7.3 matrix master ................................ ................................ .............................. 37 7.4 matrix slaves ................................ ................................ .............................. 37 7.5 master to slave access ................................ ................................ ............... 38 7.6 peripherical dma controller ................................ ................................ ........ 38 7.7 debug and test features ................................ ................................ ............ 39 8. sam4sp32a product mapping ................................ ........................ 40 9. memories ................................ ................................ ......................... 41 9.1 embedded memories ................................ ................................ .................. 41 9.1.1 internal sram ................................ ................................ .............. 41 9.1.2 intern al rom ................................ ................................ ................ 41 9.1.3 embedded flash ................................ ................................ ........... 41 9.1.3.1 flash overview ................................ ............................ 41 9.1.3.2 enhanced embedded flash controller .......................... 43 9.1.3.3 flash speed ................................ ................................ 43 9.1.3.4 lock regions ................................ ............................... 44 9.1.3.5 security bit feature ................................ ...................... 44 9.1.3.6 calibration bits ................................ ............................. 44 9.1.3.7 unique identifier ................................ ........................... 44 9.1.3.8 user signature ................................ ............................. 44 9.1.3.9 fa st flash programming interface ................................ 44 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 5 9.1.3.10 sam - ba boot ................................ ............................... 45 9.1.3.11 gpnvm bits ................................ ................................ 45 9.1.4 boot strategies ................................ ................................ ............. 45 10. system controller ................................ ................................ ............ 46 10.1 system controller and peripherals mapping ................................ ................ 47 10.2 power - on- reset, brownout and supply monitor ................................ ........... 47 10.2.1 power - on - reset ................................ ................................ ........... 47 10.2.2 brownout detector on vddcore ................................ .................. 47 10.2.3 supply monitor on vddio ................................ ............................. 47 10.3 reset controller ................................ ................................ .......................... 47 10.4 supply controller (supc) ................................ ................................ ........... 47 10.5 clock generator ................................ ................................ ......................... 48 10.6 power management controller ................................ ................................ .... 49 10.7 watchdog timer ................................ ................................ ......................... 50 10.8 systick timer ................................ ................................ ............................. 50 10.9 real time timer ................................ ................................ ......................... 50 10.10 real time clock ................................ ................................ ......................... 50 10.11 general - purpose backup registers ................................ ............................. 50 10.12 nested vectored interrupt controller ................................ ........................... 50 10.13 chip identification ................................ ................................ ....................... 51 10.14 uart ................................ ................................ ................................ ........ 51 10.15 pio controllers ................................ ................................ ........................... 51 10.16 peripheral identifiers ................................ ................................ ................... 53 10.17 peripheral signal multiplexing on i/o lines ................................ .................. 54 10.17.1 pio controller a multiplexing ................................ ......................... 54 10.17.2 pio controller b multiplexing ................................ ......................... 55 10.17.3 pio controller c multiplexing ................................ ......................... 55 11. embedded peripherals overview ..................................................... 56 11.1 two wire interface (twi) ................................ ................................ ............ 56 11.2 universal asynchronous receiver transceiver (uart) ................................ 56 11.3 usart ................................ ................................ ................................ ....... 56 11.4 synchronous serial controller (ssc) ................................ ........................... 57 11.5 timer counter (tc) ................................ ................................ ..................... 57 11.6 pulse width modulation controller (pwm) ................................ ................... 57 11.7 usb device port (udp) ................................ ................................ .............. 58 11.8 analog comparator ................................ ................................ ..................... 58 11.9 cyclic redundancy check calculation unit (crccu) ................................ .. 59 11.10 plc brigde ................................ ................................ ................................ . 59 12. prime plc transceiver ................................ ................................ .. 60 12.1 sam4sp32a prime phy layer ................................ ................................ . 61 12.1.1 sam4sp32a phy layer ................................ ............................... 61 12.1.1 .2 transmission and reception branches ......................... 62 12.1.1.3 carrier detection ................................ .......................... 62 12.1.1.4 analog front end control ................................ .............. 63 12.1.1.5 power supply sensing: vsense and psense ............ 63 12.1.1.6 gain control ................................ ................................ 64 12.1.1.7 line impedance control ................................ ............... 64 12.1.1.8 txrx control ................................ ................................ 65 12.1.2 phy parameters ................................ ................................ ........... 65 12.1.3 phy protocal data unit (ppdu) format ................................ ......... 66 12.1.4 phy service specification ................................ ............................. 66 12.1.5 phy layer registers ................................ ................................ ...... 68 12.1.5.1 phy_sfr register ................................ ...................... 68 12.1.5.2 sys_config register ................................ ................ 69 12.1.5.3 phy_config register ................................ ................ 70 12.1.5.4 attenuation register ................................ .............. 71 12.1.5.5 att_chirp register ................................ ................... 72 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 6 12.1.5.6 att _signal register ................................ ................. 73 12.1.5.7 tx_time registers ................................ ...................... 74 12.1.5.8 timer_frame registers ................................ ............ 75 12.1.5.9 timer_beacon_ref registers ................................ . 76 12.1.5.10 rx_level registers ................................ ................... 77 12.1.5.11 rssi_min register ................................ ...................... 78 12.1.5.12 rssi_avg register ................................ ..................... 79 12.1.5.13 rssi_max register ................................ ..................... 80 12.1.5.14 cinr_min register ................................ ..................... 81 12.1.5.15 cinr_avg register ................................ .................... 82 12.1.5.16 cinr_max register ................................ .................... 83 12.1.5.17 evm_header registers ................................ ............. 84 12.1.5.18 evm_payload registers ................................ ........... 85 12.1.5.19 evm_header_acum registers ................................ . 86 12.1.5.20 evm_payload_acum registers ............................... 87 12.1.5.21 rms_calc register ................................ ................... 88 12.1.5.22 vsense_config register ................................ ......... 89 12.1.5.23 num_fails register ................................ ................... 90 12.1.5.24 ttrans register ................................ ........................ 91 12.1.5 .25 agc0_krssi register ................................ ................ 92 12.1.5.26 agc1 krssi register ................................ ................. 93 12.1.5.27 zero_cross_time registers ................................ ... 94 12.1.5.28 zero_cross_config register ............................... 95 12.1.5.29 psensecycles registers ................................ ......... 96 12.1.5.30 mean registers ................................ .......................... 97 12.1.5.31 pmax registers ................................ ........................... 98 12.1.5.32 trans_psense register ................................ ........... 99 12.1.5.33 p_th registers ................................ ......................... 100 12.1.5.34 maxpot registers ................................ .................... 101 12.1.5.35 numcycles register ................................ ............... 102 12.1.5.36 a_nummilis register ................................ ............... 103 12.1.5.37 emit_config register ................................ ............. 104 12.1.5.38 afe_ctl register ................................ ..................... 105 12.1.5.39 r registers ................................ ................................ 106 12.1.5.40 phy_errors registers ................................ ........... 107 12.1.5.41 fft_mode registers ................................ ................ 108 12.1.5.42 agc_config register ................................ ............. 109 12.1.5.43 sat_th registers ................................ ..................... 111 12.1.5.44 agc1_th registers ................................ .................. 112 12.1 .5.45 agc0_th registers ................................ .................. 113 12.1.5.46 agc_pads register ................................ ................. 114 12.2 sam4sp32a mac layer ................................ ................................ .......... 115 12.2.1 cyclic redundancy check (crc) ................................ ................ 115 12.2.2 advanced encryption standard (aes) ................................ .......... 117 12.2.3 mac layer registers ................................ ................................ .. 118 12.2.3.1 sna registers ................................ ........................... 118 12.2.3.2 viterbi_ber_hard register ................................ .. 119 12.2.3.3 viterbi_ber_soft register ................................ ... 120 12.2.3.4 err_crc32_mac registers ................................ .... 121 12.2.3.5 err_crc8_mac registers ................................ ...... 122 12.2.3.6 err_crc8_aes registers ................................ ....... 123 12.2.3.7 err_crc8_mac_hd registers ................................ 124 12.2.3.8 err_crc8_phy registers ................................ ....... 125 12.2.3.9 false_det_config register ................................ . 126 12.2.3.10 false_det registers ................................ ............... 127 12.2.3.11 max_len_dbpsk register ................................ ....... 128 12.2.3.12 max_len_dbpsk_vtb register .............................. 129 12.2.3.13 max_len_dqpsk register ................................ ...... 130 12.2.3.14 max_len_dqpsk_vtb registers ............................ 131 12.2.3.15 max_len_d8psk registers ................................ ..... 132 12.2.3.16 max_len_d8psk_vtb regi ster .............................. 133 12.2.3.17 aes_pad_len register ................................ ............ 134 12.2.3.18 aes_data_in registers ................................ ........... 135 12.2.3.19 aes_data_out registers ................................ ....... 136 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 7 12.2.3.20 key_periph registers ................................ ............. 137 12.2.3.21 key_phy registers ................................ .................. 138 12.2.3.22 aes_sfr register ................................ .................... 139 13. electrical characteristics ................................ ................................ 140 13.1 absolute maximum ratings ................................ ................................ ....... 140 13.2 dc characteristics ................................ ................................ .................... 141 13.3 power consumption ................................ ................................ ................. 148 13.3.1 backup mode current consuption ................................ ............... 148 13.3.1.1 configuration a ................................ .......................... 148 13.3.1 .2 configuration b ................................ .......................... 148 13.3.2 sleep and wait mode current consumption ................................ . 149 13.3.2.1 sleep mode ................................ ............................... 149 13.3.2.2 wait mode ................................ ................................ . 151 13.3.3 active mode power consumption ................................ ................ 152 13.3.4 peripheral power consumption in active mode ............................ 154 13.4 oscillator characteristics ................................ ................................ .......... 156 13.4.1 32 khz rc oscillator characteristics ................................ ........... 156 13.4.2 4/8/12 mhz rc oscillators characteristics ................................ ... 157 13.4.3 32.768 khz crystal oscillator characteristics ............................... 158 13.4.4 32.768 khz crystal characteristics ................................ .............. 159 13.4.5 3 to 20 mhz crystal oscillator characteristics .............................. 159 13.4.6 3 to 20 mhz crystal characteristics ................................ ............. 160 13.4.7 crystal oscillator design considerations information .................... 161 13.4.7.1 choosing a crystal ................................ ..................... 161 13.4 .7.2 printed circuit board (pcb) ................................ ........ 161 13.5 plla, pllb characteristics ................................ ................................ ...... 162 13.6 usb transceiver characteristics ................................ ............................... 163 13.6.1 typical connections ................................ ................................ .... 163 13.6.2 electrical characteristics ................................ ............................. 163 13.6.3 switching characteristics ................................ ............................ 164 13.7 analog comparator characteristics ................................ ........................... 165 13.8 temperature sensor ................................ ................................ ................. 166 13.9 ac characteristics ................................ ................................ .................... 167 13.9.1 master clock characteristics ................................ ....................... 167 13.9.2 i/o characteristics ................................ ................................ ....... 167 13.9.3 ssc timings ................................ ................................ ............... 169 13.9.3.2 ssc timings ................................ .............................. 173 13.9.4 smc timings ................................ ................................ .............. 175 13.9.4.1 read timings ................................ ............................. 175 13.9.4.2 write timings ................................ ............................. 177 13.9.5 usart in spi mode timings ................................ ....................... 180 13.9.5.2 usart spi timings ................................ .................. 182 13.9.6 two - wire serial interface characteristics ................................ ..... 184 13.9.7 embedded flash characteristics ................................ ................. 186 13.10 recommended operating conditions ................................ ........................ 189 14. mechanical c haracteristics ............................................................ 190 15. ordering information ................................ ...................................... 191 16. revision history ................................ ............................................. 192 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 8 1. block diagram figure 1 - 1. sam4sp32a block diagram peripheral bridge flash 2*1024 kbytes sram 160 kbytes rom 16 kbytes cmcc(2 kb cache) flash unique identifier voltage regulator 4-layer ahb bus matrix fmax 120 mhz jtag & serial wire cortex m-4 processor fmax 120mhz dsp 24-bit systick counter n v i c mpu in-circuit emulator pdc pdc pdc pdc pdc pdc pdc pwm timer counter a usart1 usart0 uart1 uart0 twi1 twi0 tc[0..2] pioa / piob wdt sm rstc rtc por rtt 8 gpbreg rc 32 khz osc 32 khz supc 3-20 mhz osc pmc rc osc 12/8/4 mhz pllb plla system controller pdc pdc pdc pio plc_bridge analog comparator crc unit prime plc transceiver transceiver usb 2.0 full speed 2668 bytes fifo ssc 32 kbytes sram pwmh[0:3] pwml[0:3] pwmfi0 rxd1 txd1 sck1 rts1 cts1 tclk[0] tioa[0:1] tiob[0:1] rts0 cts0 txd0 sck0 twd1 urxd0 utxd0 urxd1 utxd1 rxd0 twck0 twd0 twck1 adc ch. rk advref intest1 intest2 intest3 intest4 intest5 intest6 tf tk piodc[1:0] piodcen1 piodcen2 piodcclk dpp dmm vddio vddcore vddpll rtcout0 rtcout1 nrst xin xout xin32 xout32 erase tst pck0- pck2 tdi jtagsel tck/swclk tms/swdio td0 vddin vddout12 agc rsta dbg4 dbg3 dbg2 dbgi vnr afe_himp emit[1:6] gnd vddout18 vddin vddcore vddio plc_clockout plc_clockin avrl avrh avdd agnd intest12 intest11 intest10 intest9 intest8 intest7 ainplc rsts gpio gpio www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 9 2. package and pinout 2.1 128- lead lqfp package outline figure 2 - 1. orientation of the 128 - lead package 1 32 33 64 65 96 97 128 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 10 2.2 128- lead lqfp pinout table 2 - 1. sam4sp32a 128 - lead lqfp pinout 1 advref 33 pc0 65 intest7 97 tdo/traceswo/ pb5 2 gnd 34 gnd 66 intest10 98 dbg0 3 gnd 35 vddio 67 intest12 99 jtagsel 4 agc 36 pa16/pgmd4 68 intest11 100 dbg1 5 gnd 37 nc 69 tdi/pb4 101 dbg2 6 vddio 38 pa15/pgmd3 70 vddio 102 gnd 7 agnd 39 intest1 71 pa6/pgmnoe 103 vddio 8 pb0 40 intest2 72 pa5/pgmrdy 104 dbg3 9 avdd 41 pa24/pgmd12 73 pa4/pgmncmd 105 tms/swdio/pb6 10 pb1 42 pc5 74 gnd 106 dbg4 11 agnd 43 nc 75 emit1 107 rsta 12 avdd 44 nc 76 vddio 108 rsts 13 vrh 45 vddcore 77 nrst 109 tck/swclk/pb7 14 pb2 46 gnd 78 tst 110 gnd 15 ainplc 47 pa25/pgmd13 79 emit2 111 vddout18 16 pb3 48 vddout18 80 emit3 112 gnd 17 vrl 49 nc 81 pa3 113 vddcore 18 vddin 50 intest3 82 emit4 114 vddin 19 vddout12 51 intest4 83 pa2/pgmen2 115 erase/pb12 20 pa17/pgmd5 52 intest5 84 gnd 116 vddin 21 pc26 53 pa10/pgmm2 85 vddio 117 ddm/pb10 22 pa18/pgmd6 5 4 gnd 86 emit5 118 ddp/pb11 23 pa21/pgmd9 55 pa9/pgmm1 87 vddio 119 vddio 24 vddcore 56 intest6 88 vddio 120 vddio 25 pa19/pgmd7 57 gnd 89 nc 121 plc_clocki n 26 pa22/pgmd10 58 vddio 90 emit6 122 pb13/dac0 27 pa23/pgmd11 59 pa8/xout32/ pgmm0 91 gnd 123 plc_clock out 28 pa20/pgmd8 60 intest9 92 vddio 124 gnd 29 gnd 61 gnd 93 afe_himp 125 pb8/xout 30 vddio 62 pa7/xin32/ pgmnvalid 94 pa1/pgmen1 126 gnd 31 nc 63 intest8 95 pa0/pgmen0 127 pb9/pgmck/xin 32 nc 64 vddio 96 vnr 128 vddpll www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 11 3. signal description table 3 - 1. signal description list signal name function type active level voltage reference comm e n ts power supplies vddio peripherals i/o lines and usb transceiver power supply power 3v to 3v vdd in voltage regulator input, adc, dac and analog comparator power supply power 3v to 3v vdd core power the core, the embedded memories and the peripherals power 1v to 132v vddpll oscillator and pll power supply power 1v to 132v vddout1 ldo output power supply power 1v ouput vddout12 voltage regulator output power 12v output avdd analog converter power supply power 3v to 3v agnd analog ground ground gnd digital ground ground clocks, oscillators and plls xin main oscillator input input vddio reset state - pio input - internal pull - up disabled - schmitt trigger enabled (1) xout main oscillator output output xin32 slow clock oscillator input input xout32 slow clock oscillator output output pck - pck2 programmable clock output output reset state - pio input - internal pull - up enabled - schmitt trigger enabled (1) plc_clockin external clock input reference input plc_clockout external clock output reference output analog input voltage reference ainplc direct - analog input voltage analog avrh analog input high voltage reference analog avrl analog input low voltage reference analog adverf analog comparator reference analog www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 12 table 3 - 1. signal description list (continued) signal name function type active level voltage reference comm e n ts real time clock rtcout programmable rtc waveform output output vddio reset state - pio input - internal pull - up disabled - schmitt trigger enabled (1) rtcout1 programmable rtc waveform output output serial wire/jtag debug port - swj - dp tck/swclk test clock/serial wire clock input vddio reset state - swj - dp mode - internal pull - up disabled - schmitt trigger enabled (1) tdi test data in input tdo/traceswo test data out / trace asynchronous data out output tms/swdio test mode select /serial wire input/output input/ i/o jtagsel jtag selection input high permanent internal pull - down flash memory erase flash and nvm configuration bits erase command input high vddio reset state - erase input - internal pull - down enabled - schmitt trigger enabled (1) reset/test nrst synchronous microcontroller reset i /o low vddio permanent internal pull - up tst test select input permanent internal pull - down prime plc transceiver signal c ontroller agc automatic gain control output emitx plc transmission ports output see foot note (2) vnr plc zero crossing detection signal input afe_himp analog front - end high - impedance output rsta plc asynchronous reset input internal configuration: 33k typ. pull - down resistor rsts initialization signal input www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 13 table 3 - 1. signal description list (continued) signal name function type active level voltage reference comm e n ts prime plc transceiver configuration pins dbgx external configuration pins i/o see pin description for details intest intest12 external configuration pins i/o universal asynchronous receiver transceiver - uartx urxdx uart receive data input utxdx uart transmit data output pio controller - pioa - piob - pioc pa - pa31 parallel io controller a i /o vddio reset state - pio or system ios (2) - internal pull - up enabled - schmitt trigger enabled (1) pb - pb1 parallel io controller b i/o pc - pc31 parallel io controller c i/ o universal synchronous asynchronous receiver transmitter usartx sckx usartx serial clock i /o txdx usartx transmit data i/o rxdx usartx receive data input rtsx usartx reuest to send output ctsx usartx clear to send input synchronous serial controller - ssc t k ssc transmit clock i/o rk ssc receive clock i/o tf ssc transmit frame sync i/o timer/counter - tc tclkx tc channel x external clock input input tioax tc channel x i/o line a i/o tiobx tc channel x i/o line b i/o pulse width modulation controller - pwmc pwmhx pwm waveform output high for channel x output pwmlx pwm waveform output low for channel x output only output in complementary mode when dead time insertion is enabled pwmfi pwm fault input input www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 14 table 3 - 1. signal description list (continued) signal name function type active level voltage reference comm e n ts plc brigde intest1 intest external configuration pins i/o two - wire interface - twi twdx twix two - wire serial data i/o twckx twix two - wire serial clock i/o analog comparator - a cc ac - ac analog comparator input s analog usb full speed device dmm usb full speed data - analog, digital vddio reset state - usb mode - internal pull - down (3) dpp usb full speed data note: 1. schmitt triggers can be disabled through pio registers. 2. different configurations allowed depending on external topology and net behavior. 3. refer to usb section of the product electrical characteristics for information on pull - down value in usb mode. www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 15 4. pin description table 4 - 1. pin description list pin number pin name functions type comments 1 advref analog analog voltage comparator reference 2, 3, 5, 29, 34, 46, 54, 57, 61, 74, 84, 91, 102, 110, 112, 124, 126 gnd power digital ground 4 agc output automatic gain control ? this digital output is managed by agc hardware logic to drive external circuitry if input signal attenuation is needed 6, 30, 58, 64, 70, 76, 85, 88, 87, 92, 103, 119, 120, vddio power digital power supply . voltage range: 3.0v - 3.6 v m ust be decoupled by external capacitors 7, 11 agnd power analog ground 8 pb0 pwmh0 ac 4 rtcout0 i/o pio controller b multiplexing (pb0): ? pwm waveform output high for channel 0 ? analog comparator input channel 4 ? programmable rtc waveform output ? se e signal description for details. 9, 12 avdd power a nalog converter power supply. voltage range: 3.0v - 3.6 v 10 pb1 pwmh1 ac 5 rtcout1 i/o pio controller b multiplexing (pb1): ? pwm waveform output high for channel 1 ? analog comparator input channel 5 ? programmable rtc waveform output ? se e signal description for details . 13 a vrh input analog input high voltage reference www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 16 table 4 - 1. pin description list (continued) pin number pin name functions type comments 14 pb2 urxd1 ac 6 wkup12 i/o pio controller b multiplexing (pb2): ? uart1 receive input data ? analog comparator input channel 6 ? wake - up source 12 ? fast start up of the processor ? active level: low 15 ainplc input direct - analog input voltage 16 pb3 utxd1 pck2 ac 7 i/o pio controller b multiplexing (pb3): ? uart1 transmit output data ? programmable clock output 2 ? analog comparator inp ut channel 7 ? se e signal description for details. 17 a vrl input analog input low voltage reference 18, 35 , 114, 116 vddin p voltage regulator input, analog comparator power supply . voltage range: 3.0v ? 3.6 v 19 vddout12 p voltage output regulator of 1.2 volts 20 pa17/pgmd5 td pck1 pwmh3 ac 0 i/o pio controller a multiplexing (pa17): ? synchronous serial controller (ssc) transmit output data ? programmable clock output 1 ? pwm waveform output high for channel 3 ? analog comparator input channel 0 ? se e signal description for details. 21 pc26 tioa4 i/o pio controller c multiplexing (pc26): ? tmer/counter channel 4 i/o line a ? general purpose i/o 22 pa18/pgmd6 rd pck2 ac 1 i/o pio controller a multiplexing (pa18): ? synchronous serial controller (ssc) receive input data ? programmable clock output 2 ? analog comparator input channel 1 ? se e signal description for details. www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 17 table 4 - 1. pin description list (continued) pin number pin name functions type comments 23 pa21/pgmd9 rxd1 pck1 i/o pio controller a multiplexing (pa21): ? usart1 receive input data ? programmable clock output 1 ? se e signal description for details. 24, 45, 113 vddcore p core, embedded memories and the peripherals power supply : voltage range of 1.08v to 1.32v 25 pa19/pgmd7 rk pwml0 ac 2 wkup 9 i/o pio controller a multiplexing (pa19): ? synchronous serial controller (ssc) i/o receive clock ? pwm waveform output low for channel 0 ? analog comparator input channel 2 ? wake - up source 9 ? fast start up of the processor ? active level: low 26 pa22/pgmd10 txd1 i/o pio controller a multiplexing (pa22): ? usart1 transmit i/o data 27 pa23/pgmd11 sck1 pwmh0 piodcllk i/o pio controller a multiplexing (pa 23 ): ? usart1 i/o serial clock ? pwm waveform output high for channel 0 ? parallel capture mode input clock ? voltage reference: vddio 28 pa20/pgmd8 rf pwm l1 ac 3 wkup10 i/o pio controller a multiplexing (pa 20 ): ? synchronous serial controller (ssc) i/o receive frame sync ? pwm waveform output low for channel 1 ? analog comparator input channel 3 ? wake - up source 10 ? fast start up of the processor ? active level: low 31, 32, 37, 43, 44, nc - no connect www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 18 table 4 - 1. pin description list (continued) pin number pin name functions type comments 33 pc0 pwml0 i/o p io controller c multiplexing (pc0 ): ? pwm waveform output low for channel 0 ? general purpose i/o 36 pa16/pgmd4 tk tiob1 pwml2 wkup15 piodcen2 i/o p io controller a multiplexing (pa16 ): ? synchronous serial controller ( ssc ) i/o transmit clock ? timer/counter (tc) channel 1 i/o line b ? pwm waveform output low for channel 2 ? wake - up source 15 ? fast start up of the processor ? active level: low ? pio controller - parallel capture mode enable 2 ? voltage reference: vddio 38 pa15/pgmd3 tf tioa1 pwml3 wkup14 piodcen1 i/o p io controller a multiplexing (pa15 ): ? synchronous serial controller ( ssc ) i/o transmit frame sync ? timer/counter (tc) channel 1 i/o line a ? pwm waveform output low for channel 3 ? wake - up source 14 ? fast start up of the processor ? active level: low ? pio controller - parallel capture mode enable 1 ? voltage reference: vddio 39 intest1 o external configuration pin. this pin must connect to intest7 (pin 65) 40 intest2 o external configuration pin. this pin must connect to intest 8 (pin 63) 41 pa24/pgmd12 rts1 pwmh1 piodc0 i/o p io controller a multiplexing (pa24 ): ? usart1 request to send ? pwm waveform output high for channel 1 ? pio controller - parallel capture mode data 0 www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 19 table 4 - 1. pin description list (continued) pin number pin name functions type comments 42 pc5 i/o p io controller c multiplexing (pc5 ): ? general purpose i/o 47 pa25/pgmd13 cts1 pwmh2 piodc1 i/o p io controller a multiplexing (pa25 ): ? usart1 clear to send ? pwm waveform output high for channel 2 ? pio controller - parallel capture mode data 1 48, 111 vdd out18 power 1.8v ldo output power supply. just requires output capacitor. not intended for external use 50 intest3 o external configuration pin. this pin must connect to intest 9 (pin 60) 5 1 intest4 o external configuration pin. this pin must connect to intest 10 (pin 66) 5 2 intest5 o external configuration pin. this pin must connect to intest 11 (pin 68) 5 3 pa10/pgmm2 utxd0 i/o p io controller a multiplexing (pa10 ): ? uart transmit output data ? 5 5 pa9/pgmm1 urxd0 pwmfi0 wkup6 i/o p io controller a multiplexing (pa9 ): ? uart receive input data ? pwm fault input ? wake - up source 6 ? fast start up of the processor ? active level: low 5 6 intest6 o external configuration pin. this pin must connect to intest 12 (pin 67) 59 pa8/ xout32 /pgmm0 cts0 wkup5 xout32 i/o p io controller a multiplexing (pa8 ): ? usart0 clear to send ? wake - up source 5 ? fast start up of the processor ? active level: low ? slow clock oscillator output ? se e signal description for details. 60 intest9 i external configuration pin. this pin must connect to intest 3 (pin 50) www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 20 table 4 - 1. pin description list (continued) pin number pin name functions type comments 62 pa7/ xin32 /pgmnvalid rts0 pw mh3 xin32 i/o p io controller a multiplexing (pa7 ): ? usart0 request to send ? pwm waveform output high for channel 3 ? slow clock oscillator input ? se e signal description for details. 63 intest8 i external configuration pin. this pin must connect to intest 2 (pin 40) 65 intest7 i external configuration pin. this pin must connect to intest 1 (pin 39) 66 intest10 i external configuration pin. this pin must connect to intest 4 (pin 51) 67 intest12 i external configuration pin. this pin must connect to intest 6 (pin 56) 68 intest11 i external configuration pin. this pin m ust connect to intest5 (pin 52) 69 tdi/pb4 twd1 pwmh2 tdi i/o p io controller b multiplexing (pb4 ): ? two - wire interface ? twi1 two - wire i/o serial data ? pwm waveform output high for channel 2 ? serial wire/jtag debug port (swj - dp) test data in ? se e signal description for details. 71 pa6/pgmnoe txd0 pck0 i/o p io controller a multiplexing (pa6 ): ? usart0 transmit i/o data ? programmable clock output ? se e signal description for details. 72 pa5/pgmry rxd0 wkup4 i/o p io controller a multiplexing (pa5 ): ? usart0 receive input data ? wake - up source 4 ? fast start up of the processor ? active level: low www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 21 table 4 - 1. pin description list (continued) pin number pin name functions type comments 73 pa4/pgmncmd twck0 tclk0 wkup3 i/o p io controller a multiplexing (pa4 ): ? two - wire interface - twi0 two - wire i/o serial clock ? timer/counter (tc) channel 0 external clock input ? wake - up source 3 ? fast start up of the processor ? active level: low 75, 79, 80, 82, 86, 90, emit(1:6) output plc transmission ports . ? se e signal description for details. 77 nrst i/o synchronous prime plc reset ? se e signal description for details. 78 t st i test select ? se e signal description for details. 81 pa3 twd0 i/o p io controller a multiplexing (pa3 ): ? two - wire interface - twi0 two - wire i/o serial data 83 pa2/pgmen2 pwmh2 sck0 wkup2 i/o p io controller a multiplexing (pa2 ): ? pwm waveform output high for channel 2 ? usart0 i/o serial clock ? wake - up source 2 ? fast start up of the processor ? active level: low www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 22 table 4 - 1. pin description list (continued) pin number pin name functions type comments 93 afe_himp output analog front - end high - impedance ? this digital output is used by the chip to select between low - impedance and high - impedance transmission branch (when working with a ?two half - h - bridge branches? analog front end configuration). this way, the system adapts its transmission external circuitry to the net impedance, improving transmission behavior. the polarity of thi s pin can be inverted by hardware. please refer to the reference design for further information. 94 pa1/pgmen1 pwmh1 tiob0 wkup1 i/o p io controller a multiplexing (pa1 ): ? pwm waveform output high for channel 1 ? timer/counter (tc) channel 0 i/o line b ? wake - up source 1 ? fast start up of the processor ? active level: low 95 pa0/pgmen0 pwmh0 tioa0 wkup0 i/o p io controller a multiplexing (pa0 ): ? pwm waveform output high for channel 0 ? timer/counter (tc) channel 0 i/o line a ? wake - up source 0 ? fast start up of the processor ? active level: low 96 vnr input plc zero crossing detection signal ? this input detects the zero - crossing of the mains voltage, needed to determine proper switching times. depending on whether an isolated or a non - isolated power supply is being used, isolation of this pin should be taken into account in the circuitry design. please refer to the reference design for further information. www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 23 table 4 - 1. pin description list (continued) pin number pin name functions type comments 97 tdo/ traceswo /pb5 twck1 pwml0 wkup13 tdo traceswo i/o p io controller b multiplexing (pb5 ): ? two - wire interface - twi1 two - wire i/o serial clock ? pwm waveform output low for channel 0 ? wake - up source 13 ? fast start up of the processor ? active level: low ? tdo - test data out / trace asynchronous data out ( traceswo ) ? se e signal description for details. 98 dbg0 input internal configuration: must connect n w \ s s x o o - up resistor 99 jtagsel a - i analog input used to select the jtag boundary scan when asserted at a high level. ? se e signal description for details. 100 dbg1 input , q w h u q d o f r q i l j x u d w l r q p x v w n w \ s s x o o - up resistor 101 dbg2 output no connect 104 dbg3 input , q w h u q d o f r q i l j x u d w l r q p x v w n w \ s s x o o - up resistor 105 tms/ swd io/pb6 tms swd io i/o p io controller b multiplexing (pb6 ): ? tms - test mode input select / ( swd io ) serial wire i/o ? se e signal description for details. 106 dbg4 input no connect 107 rsta input plc asynchronous reset ? rsta is a digital input pin used to perform a hardware reset of the asic ? rsta is active high www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 24 table 4 - 1. pin description list (continued) pin number pin name functions type comments 108 rsts input initialization signal ? during power - on, d_init should be released before asynchronous reset signal rsta, in order to ensure proper system start up. not minimum time is required between both releases, w ! ? d_init is active high 109 tck / swclk / pb7 tck swclk i/o pio controller b multiplexing (pb7): ? tck - test clock/(swclk) serial wire clock ? se e signal description for details. 115 erase /pb12 pwml1 erase i/o pio controller b multiplexing (pb12): ? pwm waveform output low for channel 0 ? flash and nvm configuration bits erase command ? se e signal description for details. 117 ddm /pb10 dm m a - i/o p io controller b multiplexing (pb10 ): ? usb full speed data ? ? se e signal description for details. 118 ddp /pb11 dp p a - i/o p io controller b multiplexing (pb11 ): ? usb full speed data + ? se e signal description for details. 121 plc_clockin input external clock reference ? plc_clockin must be connected to one terminal of a crystal (when a crystal is being used) or tied to ground if a compatible oscillator is being used www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 25 table 4 - 1. pin description list (continued) pin number pin name functions type comments 123 plc_clockout i/o external clock reference ? plc_clockout must be connected to one terminal of a crystal (when a crystal is being used) or to one terminal of a compatible oscillator (when a compatible oscillator is being used) 125 pb8/xout xout output pio controller b multiplexing (pb8): ? main oscilator output 127 pb9/pgmck/xin xin input pio controller b multiplexing (pb9): ? main oscilator input 128 vddpll power oscillator and pll power supply ? 1.08v to 1.32v www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 26 5. power considerations 5.1 power supplies the sam4sp32a has several types of power supply pins: ? vddcore pins: power the core, the embedded memories and the peripherals. voltage ranges from 1.08v to 1.32v. ? vddio pins: power the peripherals i/o lines (input/output buffers), usb transceiver, backup part, 32 khz crystal oscillator and oscillator pads. v oltage ranges from 3.0v to 3.6v. ? vddin pin: voltage regulator input, and analog comparator power supply. voltage ranges from 3.0 v to 3.6v. ? vddpll pin: powers the plla, pllb, the fast rc and the 3 to 20 mhz oscillator. voltage ranges from 1.08v to 1.32v. ? avdd pin: prime plc analog converter power supply. voltage ranges from 3.0 v to 3.6v. 5.2 voltage regulator the sam4sp32a embeds two voltage regulator s that are managed by the supply controller. the first internal regulator is designed to supply the internal core of sam4sp32a it features two operating modes: ? , q 1 r u p d o p r g h w k h y r o w d j h u h j x o d w r u f r q v x p h v o h v v w k d q $ v w d w l f f x u u h q w d q g g u d z v p $ r i r x w s x w current. internal adaptive biasing adjusts the regulator quiescent current depending on the require d load f x u u h q w , q : d l w 0 r g h t x l h v f h q w f x u u h q w l v r q o \ $ ? , q % d f n x s p r g h w k h y r o w d j h u h j x o d w r u f r q v x p h v o h v v w k d q $ z k l o h l w v r x w s x w 9 ' ' 2 8 7 12 ) is driven internally to gnd. the default output voltage is 1.20v and the start - up time to reach normal m ode is less w k d q v the second internal regulator is designed to supply the internal prime plc transceiver . its output (vddout18) is driven internally to gnd and the default output voltage is 1.8v. the vddout18 pin just requires an output capacitor i q w k h u d q j h r i ) - ) and it is not intended for external use. for adequate input and output power supply decoupling/bypassing, refer to the ?voltage regulator? section in the ?electrical characteristics? section of the datasheet. 5.3 typical powering s chematics the sam4sp32a supports a 3.0 v - 3.6v single supply mode. the internal regulator input is con nected to the source and its output feeds vddcore. figure 5 - 1 shows the power schematics. as vddin powers the voltage reg ulator, and the analog comparator, when the user does not want to use the embedded voltage regulator, it can be disabled by softwar e via the supc (note that this is different from backup mode). www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 27 figure 5 - 1. single supply note: restrictions for usb, vddio needs to be greater than 3.0v. figure 5 - 2. core externally supplied m ain supply (3.0 v -3.6 v ) a nalog c ompa r a t o r . usb t r ans c ei v er s . vddin v oltage r egul a t or vddout12 vdd c ore vddio vddpll m ain supply (3.0 v -3.6 v ) c an be the same supply vdd c ore supply (1.08 v -1.32 v ) pl c t r ans c ei v er a nalog c ompa r a t or supplies (3.0 v -3.6 v ) a nalog c ompa r a t or usb t r ans c ei v er s . vddin v oltage r egul a t or vddout12 vdd c ore vddio vddpll prime p l c t r ans c ei v er www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 28 figure 5 - 3. backup baterry a nalog c ompa ra t or usb t r ans c ei v er s . vddin v oltage r egul a t or 3.3v ldo bac k up ba tt er y + - on/off in out vddout12 m ain supply vdd c ore prime p l c a nalog c ompa r a t or supplies (3.0 v -3.6 v ) vddio vddpll pi o x ( o utput) w akeupx e x t e r nal w akeup si g nal no t e: t he t w o diodes p r o vide a swi t ch o v er ci r cui t ( f or illust ra tion pu r pose) be t w een the bac k up b a tt er y and the main supply when the s y st em is put in bac k up mod e . prime p l c t r ans c ei v er www.datasheet.net/ datasheet pdf - http://www..co.kr/ a tmel sam4sp32a [ prelim in ary datasheet ] 43020a - atpl - 09/12 29 5.4 active mode active mode is the normal running mode with the core clock r unning from the fast rc oscilla tor, the main crystal oscillator or the plla. the power management controller can be used to adapt the frequency and to disable the peripheral clocks. 5.5 low - power modes in low - power mode, the 3. 3 volts power source must be shu t down before running in any low - power mode. the prime plc transceiver peripheral is turn ed off during a low - power mode configuration. the various low - power modes of the sam4sp32a are described below: 5.5.1 backup mode the purpose of backup mode is to achieve the lowest power co nsumption possible in a sys tem which is performing periodic wake - ups to perform tasks but not requiring fast startup time. the supply controller, zero - power power - on reset, rtt, rtc, backup registers and 32 khz oscillator (rc or crystal os cillator selected by software in the supply controller) are running. the regulator s , prime plc transceiver and the core supply are off. backup mode is based on the cortex - m4 deep sleep mode with the voltage regulator s disabled. the sam4sp32a can be awake ned from this mode through wup0 - 15 pins, the supply monitor (sm), the rtt or rtc wake - up event. backup mode is entered by using bit vroff of supply controller (supc_cr) and with the sleepdeep bit in the cortex - m4 system control regist er set to 1. entering backup mode : ? set the sleepdeep bit of cortex_m4, set to 1. ? set the vroff bit of supc_cr at 1 exit from backup mode happens if one of the following enable wake up events occurs: ? wkupen0 - 15 pins (level transition, configurable debouncing) ? supply monitor alarm ? rtc alarm ? rtt alarm 5.5.2 wait mode the purpose of the wait mode is to achieve very low power consumption while maintaining the whole device in a powered state for a startup time of less t k d q i h z k x q g u h g v & |